package model

import "time"

// Category 分类
type Category struct {
	Id          int64     `gorm:"not null;unique;primaryKey"`
	Title       string    `gorm:"size:20;not null;unique;comment:分类名称"`
	PathName    string    `gorm:"column:path_name;not null;size:255;comment:分类路径名称(推荐英文)"`
	FileNum     uint32    `gorm:"not null;default:0;comment:分类下的文件数量"`
	Species     string    `gorm:"size:50;not null;comment:分类种类：分为系统(system)和自定义(custom)"`
	Brief       string    `gorm:"size:255;comment:备注"`
	CreatedTime time.Time `gorm:"column:create_time;comment:创建时间"`
	UpdatedTime time.Time `gorm:"column:update_time;comment:更新时间"`
	CanView     bool      `gorm:"column:can_view;default:true;comment:删除标志"`
}
